<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Lista de Clientes</title>
</head>
<body marginwidth="100px">
<div id="tudo" align="left">
	<f:view>  
  <h:form>
  <fieldset>
  <legend>Pesquisa de Noticias</legend>
        <h:panelGrid>
          <h:outputLabel value="Digite o titulo:"/>
          <h:inputText value="#{noticiaBean.titulo}" required="true"/>
          <h:commandButton value="Pesquisar" action="#{noticiaBean.pesquisa}"/>			 
         </h:panelGrid>
 
     <h:panelGrid columns="2">
     <h:outputText value="Titulo:"/>
     <h:inputText value="#{noticiaBean.noticia.titulo}"/>
     <h:outputText value="Descricao:"/>
     <h:inputTextarea id="mensagem" cols="50" rows="5" value="#{noticiaBean.noticia.descricao}" style="overflow:scroll;"/>
          
     
	<h:commandButton value="Atualizar" action="#{noticiaBean.altera}"/>
	<h:commandButton value="Excluir" action="#{noticiaBean.excluirNoticia}"/>			
	</h:panelGrid>
 </fieldset>
   </h:form>
</f:view>
</div>
</body>
</html>